-- Neovim Configuration Module: Options --
local opts = {
	--- Appearance ---
	number = true,
	cursorline = true,
	splitbelow = true,
	splitright = true,
	signcolumn = 'number',
	list = true,
	listchars = 'tab:╎ ,trail:•,nbsp:◦',

	--- Movement ---
	virtualedit = 'onemore',

	--- Editing ---
	shiftwidth = 2,
	tabstop = 2,
	foldmethod = 'syntax',
	foldlevelstart = 99,

	completeopt = { 'menu', 'menuone', 'noselect' },

	--- Search ---
	hlsearch = false,
	ignorecase = true,
	smartcase = true,

	--- Files ---
	backup = false,
}
for key, val in pairs(opts) do
	vim.opt[key] = val
end

local gs = {
	maplocalleader = ' ',
}
for key, val in pairs(gs) do
	vim.g[key] = val
end

vim.diagnostic.config { virtual_text = true }
